import request from '/@/utils/request';
//列表
export const roleList = (data: object) => {
    return request({
        method: 'post',
        url: "/auth/roles/index", // url
        data: data
    });
}
// 新增、编辑
export const roleAdd = (data: object) => {
    return request({
        method: 'post',
        url: "/auth/roles/add", // url
        data: data
    });
}
// 删除
export const roleDelete = (data: number) => {
    return request({
        method: 'post',
        url: "/auth/roles/del", // url
        data: data
    });
}